package demo1;

import sun.awt.HeadlessToolkit;

public /*abstract*/ class Dog extends Animal{
    public Dog(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println(this.name + "正在吃狗粮......");
    }

    //public abstract void test();
}
/*
class PetDog extends Dog {

    public PetDog(String name, int age) {
        super(name, age);
    }

    @Override
    public void test() {

    }

    @Override
    public void eat() {

    }
}*/
